FROM openjdk:17.0.2-jdk

ADD *.jar app.jar
ADD application-prod.yml /config/application-prod.yml
EXPOSE 8880

VOLUME ["/resources","/logs"]
#设置时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/app.jar","--spring.profiles.active=prod"]